Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only limit the neighbor cache rate after sending a request packet #369

Merged
merged 3 commits into from
Aug 17, 2020

Conversation

thalesfragoso
Copy link
Contributor

Prior to this change, the neighbor cache rate would get limited even when the device failed to process our arp packet, which could put the socket in the waiting state in the next poll.
This change only limits the cache rate if the device successfully consumed our packet.

Closes #319 again

For more information refer to my comment on the issue.

Prior to this change, the neighbor cache would get limited even when the
device failed to process our arp packet, which could put the socket in
the waiting state in the next poll.

This change only limits the cache rate if the device successfully
consumed our packet.
@whitequark
Copy link
Contributor

The change seems fine as-is, but I think that the lookup_pure/lookup distinction lost its meaning. Do you think you could merge those into just lookup? I'll leave the details to your judgement.

@thalesfragoso
Copy link
Contributor Author

Makes sense, I will try something.

@thalesfragoso
Copy link
Contributor Author

Ok, done. Let me know what you think of my approach.

Copy link
Contributor

@whitequark whitequark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@whitequark whitequark merged commit 39c41af into smoltcp-rs:master Aug 17, 2020
@thalesfragoso thalesfragoso deleted the neighbor-limit branch June 4, 2022 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

ARP requests not coming through UDP "flood"
2 participants